﻿using Furion.DatabaseAccessor;
using System;
using System.ComponentModel.DataAnnotations;

namespace Pear.Core
{
    /// <summary>
    /// 站点信息（博客）
    /// </summary>
    public class SiteInfo : Entity<int>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public SiteInfo()
        {
            CreatedTime = DateTime.Now;
            IsDeleted = false;
        }
        /// <summary>
        /// 头像
        /// </summary>
        [Required, MaxLength(256)]
        public string Avatar { get; set; }

        /// <summary>
        /// 标语
        /// </summary>
        [Required, MaxLength(128)]
        public string Slogan { get; set; }

        /// <summary>
        /// 通知
        /// </summary>
        [MaxLength(500)]
        public string Notice { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [Required, MaxLength(32)]
        public string NickName { get; set; }

        /// <summary>
        /// 域名
        /// </summary>
        [MaxLength(64)]
        public string Domain { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [MaxLength(256)]
        public string Describe { get; set; }
    }
}